home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / term43-source.lha / Extras / Source / gtlayout-Source.lha / LTP_BackFillRoutine.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-21  |  674 b   |  26 lines

  1. /*  GadTools layout toolkit
  2. **
  3. **  Copyright © 1993-1994 by Olaf `Olsen' Barthel
  4. **  Freely distributable.
  5. */
  6.  
  7. #include "gtlayout_global.h"
  8.  
  9. ULONG __asm __saveds
  10. LTP_BackfillRoutine(register __a0 struct Hook *Hook,register __a1 struct {ULONG Layer; struct Rectangle Bounds;} *Bounds,register __a2 struct RastPort *RPort)
  11. {
  12.     struct LayoutHandle    *Handle = (struct LayoutHandle *)Hook -> h_Data;
  13.     struct RastPort      RastPort = *RPort;
  14.  
  15.     RPort = &RastPort;
  16.  
  17.     RPort -> Layer = NULL;
  18.  
  19.     SetAPen(RPort,Handle -> BackgroundPen);
  20.     SetDrMd(RPort,JAM1);
  21.  
  22.     RectFill(RPort,Bounds -> Bounds . MinX,Bounds -> Bounds . MinY,Bounds -> Bounds . MaxX,Bounds -> Bounds . MaxY);
  23.  
  24.     return(TRUE);
  25. }
  26.